package com.fengmi.service;

import com.fengmi.dto.PageDTO;
import com.fengmi.entity.MallGoodsBrandEntity;
import com.fengmi.vo.PageResultVO;
import com.fengmi.vo.ResultVO;

public interface MallGoodsBrandService {
    //条件查询加分页查询
    PageResultVO<MallGoodsBrandEntity> findByPage(PageDTO<MallGoodsBrandEntity> pageDTO);

    //添加品牌到数据库保存
    public ResultVO saveInsert(MallGoodsBrandEntity mallGoodsBrand);

    //通过id查询一个品牌信息
    public ResultVO findOneBrandById(String id);

    //修改品牌的展示状态实现开关功能（反选）
    public ResultVO toggleBrandShowStatus(String id, Integer status);

    //通过id删除
    public ResultVO deleteBrandById(String id);

    //修改品牌信息
    public ResultVO updateBrandInfo(MallGoodsBrandEntity mallGoodsBrand);

    //批量删除
    public ResultVO delMoreThanOneBrand(Integer[] ids);

    //查询所有品牌
    public ResultVO selectAllBrand();
}
